package com.handyshop.mall.dubbo.user.dto.org;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author hs
 * @date 2020-11-30 18:03
 **/
@Data
@ApiModel(value = "新增组织部门")
public class SysOrgAddDto {
    @NotBlank(message = "父级id不能为空")
    @ApiModelProperty(value = "父级id 如无父级传: 0")
    private Long parentId;
    @NotBlank(message = "部门名称不能为空")
    @ApiModelProperty(value = "部门名称")
    private String name;
    @NotBlank(message = "部门编码不能为空")
    @ApiModelProperty(value = "部门code")
    private String code;
    @ApiModelProperty(value = "状态 0:启用;1关闭")
    private Boolean status;
}
